#pragma once
#include "sgobject.h"
#include "graphics/GrVector.h"
#include "SgPolygon.h"

class CSgTexture;

class CSgBox :
	public CSgObject
{
public:
	CSgBox(void);
	~CSgBox(void);

	CSgBox(double x, double y, double z, CSgTexture *texture = NULL);
	void Render();

private:
	double m_x, m_y, m_z;
	CSgPtr<CSgPolygon> m_boxBottom;
	CSgPtr<CSgPolygon> m_boxLeft;
	CSgPtr<CSgPolygon> m_boxRight;
	CSgPtr<CSgPolygon> m_boxTop;
	CSgPtr<CSgPolygon> m_boxFront;
	CSgPtr<CSgPolygon> m_boxBack;
};
